<template>
  <div class="node-wrap">
    <div class="flex">
      <div class="add-node-btn-box">
        <div class="add-node-btn">
          <el-button type="danger" round @click="delNode">返回</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    inject: ['select'],
    props: {
      modelValue: { type: Object, default: () => {} }
    },
    components: {

    },
    data() {
      return {
        nodeConfig: {

        },
        drawer: false,
        isEditTitle: false,
        form: {}
      }
    },
    watch:{
      modelValue(){
        this.nodeConfig = this.modelValue
      }
    },
    mounted() {
      this.nodeConfig = this.modelValue
    },
    methods: {
      delNode(){
        this.$emit("update:modelValue", this.nodeConfig.childNode)
      }
    }
  }
</script>

<style scoped>
.sc-workflow-design .add-node-btn-box:before {
  bottom: 80px;
  top: 10px;
}
</style>
